<?php


namespace App\Http\Controllers\admin\validate;


use Illuminate\Support\Facades\Validator;

class Strategy
{
    public static function snQuery($param){
        $rules = [
            'sn'=>'required',
        ];
        $msg = [
            'sn.required'=>'sn为空',
        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }



}